package com.yanu.t2s.service.Impl;

import com.yanu.t2s.entity.Meat;
import com.yanu.t2s.mapper.MeatMapper;
import com.yanu.t2s.service.MeatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MeatServiceImpl implements MeatService {
    @Autowired
    MeatMapper meatMapper;
    @Override
    public Meat findByIdMeat(int id_meat) {
        return meatMapper.findByIdMeat(id_meat);
    }

    @Override
    public List<Meat> findAllMeat() {
        return meatMapper.findAllMeat();
    }
}
